package cn.ware.house.interfaces.mapper.inboundmapper;

import cn.ware.house.interfaces.entity.inbound.InboundOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface InboundOrderMapper {

    // 分页查询入库订单信息
    List<InboundOrder> selectInboundOrdersByPage(int offset, int limit);

    // 根据入库订单编号查询订单信息
    InboundOrder selectInboundOrderById(Integer inboundOrderId);

    // 插入入库订单信息
    int insertInboundOrder(InboundOrder inboundOrder);

    // 根据入库订单编号更新订单信息
    int updateInboundOrderById(InboundOrder inboundOrder);

    // 根据入库订单编号删除订单信息
    int deleteInboundOrderById(Integer inboundOrderId);

    // 获取入库订单总记录数（用于分页计算总页数等）
    int countInboundOrders();
}
